package com.zretc.service.impl;

import com.zretc.dao.AddressMapper;
import com.zretc.entity.Address;
import com.zretc.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author: bLUeSuMMerDreamer
 * @createTime: 2020-07-25 02:49
 */
@Service
public class AddressServiceImpl implements AddressService {
    @Autowired
    private AddressMapper addressMapper;

    @Override
    @Transactional
    public Boolean addAddress(Address address) {
        return addressMapper.insertAddress(address) == 1;
    }
}
